//
//  ZhangDanMingXi.m
//  EJLX
//
//  Created by xufei on 15/12/16.
//  Copyright © 2015年 江苏一键联信息科技有限公司. All rights reserved.
//

#import "ZhangDanMingXi.h"
#import "SecondZhangDanMingXi.h"
@implementation ZhangDanMingXi
+(id)userWithDictionary:(NSDictionary*)userDic
{
    return [[self alloc]initWithDictionary:userDic];
}
-(id)initWithDictionary:(NSDictionary*)userDic
{
    self = [super init];
    if (self)
    {
        _totalPage=[userDic[@"totalPage"]intValue];
        _page=[userDic[@"page"]intValue];
        _pageSize=[userDic[@"pageSize"]intValue];
        _listAry =[NSMutableArray array];
        
        NSMutableArray*listAry=userDic[@"list"];
        if (listAry.count>0)
        {
            for (int i=0; i<listAry.count; i++)
            {
                SecondZhangDanMingXi*search=[SecondZhangDanMingXi userWithDictionary:listAry[i]];
                [_listAry addObject:search];
            }
        }
        
        
    }
    return self ;
}

@end
